<?php
/* @var $this CourseController */
/* @var $dataProvider CActiveDataProvider */

$this->breadcrumbs=array(
    yii::t('other/Site','Courses'),
);
?>

<h1><?php echo yii::t('other/Site','Courses List'); ?></h1>

<?php 
$this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'course-grid',
    'dataProvider'=>$dataProvider,
    'columns'=>array(
        array(
            'class'=>'CLinkColumn',
            'header'=>yii::t('model/Course','Course_name'),
            'labelExpression'=>'$data->course_name',
            'urlExpression'=>'Yii::app()->createURL("course/view", array("id"=>"$data->course_id"))',
        ),
        array(
            'name'=>yii::t('other/Site','Teacher'),
            'value'=>'2',
        ),
    ),
));
 ?>
